package ${groupId}.controller.boss.login.dto;

import com.system.core.results.ResultBase;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class LoginResult extends ResultBase {

	@NotBlank(message = "请输入用户名")
	@Schema(description = "用户名")
	private String userName;
	@NotBlank(message = "请输入密码")
	@Schema(description = "密码")
	private String password;
	@Schema(description = "图形验证码")
	private String captcha;
	private boolean showCaptcha = false;
	@Schema(description = "页面引用")
	private String refer;
	@Schema(description = "记住我")
	private boolean rememberMe;
	private Long bankId;
    private String permissions;
	private String loginType = "boss";

	@Schema(description = "权限角色")
	private Long roleId;

	public void reset() {
		this.password = null;
		this.captcha = null;
	}
}
